﻿using System.Collections.Generic;

namespace ML.Entity
{
    /// <summary>
    /// 返回分页的信息的公共类
    /// </summary>
    public class Pager<T>
    {
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public Pager()
        {
            this.rows = new List<T>();
        }

        /// <summary>
        /// 总数
        /// </summary>
        public int total { get; set; }

        /// <summary>
        /// 查询数据集合
        /// </summary>
        public IList<T> rows { get; set; }

        /// <summary>
        /// 总页数
        /// </summary>
        public int pagecount { get; set; }

        /// <summary>
        /// 当前页面
        /// </summary>
        public int pageindex { get; set; }
    }
}